package Data;

import java.util.Timer;
import java.util.TimerTask;

public class TimeShcedule {
	public static void shceduleRun() {
		Timer timer = new Timer();
		timer.schedule(new WorkSchedule(), 5*1000, 5*1000);
	}
	public static class WorkSchedule extends TimerTask {

		@Override
		public void run() {
			LogWriter writer = new LogWriter();
			
			String log_path = "C:\\";
			
			writer.writeLog(Memory.mmr_log, log_path);
			System.out.println(Memory.mmr_log);
		}
		
	}
}
